// 常量路由
export default [
    {
        path: '/home',
        name: 'home',
        component: () => import('../views/HomeView.vue'),
        meta: {
            title: 'Home',
            icon: 'House',
            permissions: ['admin', 'user']
        }
    },
    {
        path:'/user',
        name:'user',
        component:()=>import('../views/UserView.vue'),
        meta:{
            title: 'Users',
            icon:'User',
            permissions: ['admin']
        },
    },
    {
        path:'/clubs',
        name:'clubs',
        component:()=>import('../views/ClubsView.vue'),
        meta:{
            title: 'Clubs',
            icon:'Connection',
            permissions: ['admin', 'user']
        }
    },
    {
        path:'/events',
        name:'activities',
        component:()=>import('../views/EventListView.vue'),
        meta:{
            title: 'Events',
            icon:'Calendar',
            permissions: ['admin', 'user']
        }
    },
    {
        path: '/members',
        name: 'membership',
        component: () => import('../views/MembersView.vue'),
        meta: {
            title: 'Members',
            icon:'ChatLineRound',
            permissions: ['admin', 'user']
        },
    },
    {
        path:'/settings',
        name:'settings',
        component:()=>import('../views/SettingView.vue'),
        meta:{
            title:'settings',
            icon: 'Setting',
            permissions: ['admin', 'user']
        },
    },
    {
        path:'/about',
        name:'about',
        component:()=>import('../views/AboutView.vue'),
        meta:{
            title:'about',
            icon: 'PieChart',
            permissions: ['admin', 'user']
        },
    },
]